body {
  font-family: "Cinzel", serif;
  margin: 0;
  padding: 20px;
  background: radial-gradient(#aaa, #666);
}

.clock h2 {
  margin: 0;
  padding: 0.5rem 0;
  font-size: 1.2rem;
}

.clock p {
  margin: 0;
  padding: 0;
  padding-top: 0.5rem;
}

span.ux {
  display: block;
  text-align: right;
  font-size: 1rem;
  color: #333;
  margin-top: 20px;
  margin-right: 14%;
}

h1,
.clock-container,
.clock-container-top,
.city-select {
  border-radius: 12px;
  margin-left: 10%;
  margin-right: 10%;
  margin-bottom: 20px;
  box-shadow: inset 8px 8px 15px rgba(0, 0, 0, 0.4),
    inset -8px -8px 15px rgba(255, 255, 255, 0.2);
}

h1 {
  text-align: center;
  color: #333;
}

h1,
.city-select {
  background: linear-gradient(145deg, #b89b72, #e0c9a6);
  color: #2c2c2c;
  border: 1px solid #6f5846;
}

.clock-container,
.clock-container-top {
  background: linear-gradient(145deg, #d2d2d2, #f0f0f0);
  border: 1px solid #aaa;
  position: relative;
  max-width: 90%;
  box-sizing: border-box;
  padding: 1rem 2rem 0.5rem;
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  max-height: 240px;
}

.clock {
  max-width: 100%;
  max-height: 3rem;
  box-sizing: border-box;
  margin-bottom: 0px;
  border-bottom: #b89b72 1px solid;

  position: relative;
  padding-right: 20px;
  padding-top: 0px;
}

select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

a {
  color: #fff4e1;
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
  font-weight: bold;
}

a:hover {
  color: #ae946f;
  text-decoration: underline;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #fbeed6b6;
  padding-top: 20px;
  border-top: 1px solid #ccc;
  margin-top: 40px;
}

.date-time {
  position: absolute;
  top: 0;
  right: 10px;
  text-align: right;
  z-index: 1;
}
.clock-container::-webkit-scrollbar {
  width: 10px;
}
.clock-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
.clock-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.clock-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 12px;
}
.clock-container::-webkit-scrollbar-track:hover {
  background: #e0e0e0;
}
@media (max-width: 768px) {
  .clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    max-height: none; /* allow it to expand vertically */
  }
  .clock h2,
  .clock p {
    white-space: normal;
    padding-bottom: 0.25rem;
  }
  .date-time {
    position: static;
    text-align: center;
    margin-top: 0.25rem;
  }
}

.clock-container,
.clock-container-top {
  padding: 1rem;
  max-height: 300px; /* a little more room on mobile */
}

span.ux {
  font-size: 0.9rem;
  margin-right: 5%;
  text-align: center;
}

.city-select {
  display: block;
  width: 100%;
  max-width: 600px; /* or however wide you'd like it at most */
  margin: 0 auto 20px auto; /* center it horizontally */
  font-size: 1rem;
  padding: 0.5rem;
}

.clock h2 {
  font-size: 1rem;
}

.clock p {
  font-size: 0.9rem;
}

footer {
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
